package com.zm.bean;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "test_door_result")
public class TestDoorResultBean {


    //    {
//        "id": 1,
//            "testStartTime": -1,
//            "testEndTime": -1,
//            "doorIndex": -1,
//            "countOpenTest": 0,
//            "countOpenSuccess": 0,
//            "countOpenFail": 0,
//            "countCloseTest": 0,
//            "countCloseSuccess": 0,
//            "countCloseFail": 0
//    }
    @Id
    @GeneratedValue
    private Long id;


    public TestDoorResultBean() {
    }

    public TestDoorResultBean(int doorIndex) {
        this.doorIndex = doorIndex;
    }

    public String cabinetId = "";
    public long testStartTime = 0;//测试开始时间
    public long testEndTime =0;//测试结束时间
    public int doorIndex = -1;//仓门下标
    public int countOpenTest = 0;//测试总次数(开)
    public int countOpenSuccess = 0;//成功次数(开)
    public int countOpenFail = 0;//失败次数(开)

    public int countCloseTest = 0;//测试总次数(关)
    public int countCloseSuccess = 0;//成功次数(关)
    public int countCloseFail = 0;//失败次数(关)

}
